package com.ahs.microservice.zuul;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;

/**
 * ClassName: AppZuulTest<br>
 * Description: TODO .<br>
 * Reason: TODO ADD REASON(可选) <br>
 *
 * @author dengw
 * @date: 2017年3月16日 下午2:38:16
 * @version V1.0
 * @since JDK 1.8
 */
@EnableEurekaClient
@EnableZuulProxy
// @EnableZipkinServer
@SpringCloudApplication
public class AppZuulTest {
	
	public static void main(String[] args) {
		new SpringApplicationBuilder(AppZuulTest.class).web(true).run(args);

	}

	@Bean
	public AccessFilter accessFilter() {
		return new AccessFilter();
	}
}
